﻿using WMLogistics.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions;
using WMLogistics_Dao;
using System.Data;

namespace WMLogistics.Service
{
    public class WuliuBusinessService
    {
        private WuliuBusinessDao dao = new WuliuBusinessDao();

        public PageData<DataTable> GetList(ContractAuthorizatQuery predicate, int page, int pageSize)
        {
            return dao.GetList(predicate, page, pageSize);
        }

        public bool UpdateFlag(int id, string apply_flag)
        {
            return dao.UpdaeFlag(id, apply_flag);
        }

        public bool Add(wuliu_wlcompany_business business)
        {
            return dao.Add(business);
        }

        public bool Update(wuliu_wlcompany_business business)
        {
            return dao.Update(business);
        }

        public wuliu_wlcompany_business GetWLBusinessByWuliuId(int wuliu_id)
        {
            return dao.GetWLBusinessByWuliuId(wuliu_id);
        }
    }
}
